<template>
  <el-table
    :data="tableData"
    border
    style="width: 100%">
    <el-table-column
      prop="name"
      label="套餐名"
      width="180">
    </el-table-column>
    <el-table-column
      prop="mealtype"
      label="套餐类型"
      width="180">
    </el-table-column>
    <el-table-column
      prop="shop"
      label="门店">
    </el-table-column>
       <el-table-column
      prop="type"
      label="类别">
    </el-table-column>
       <el-table-column
      prop="oldprice"
      label="原价">
    </el-table-column>
       <el-table-column
      prop="newprice"
      label="现价">
    </el-table-column>
       <el-table-column
      prop="examine"
      label="审核">
       <template slot-scope="scope">
        <img v-if="scope.row.examinestatus" src="../../assets/img/dui.png" style="width:14px;height:14px;margin-right:6px" alt="">
        <span>{{scope.row.examine}}</span>
      </template>
    </el-table-column>
     <el-table-column
      label="操作">
      <template slot-scope="scope">
        <el-button @click="handleClick(scope.row)" type="text" size="mini">通过</el-button>
        <el-button type="text" size="mini">拒绝</el-button>
      </template>
    </el-table-column>
  </el-table>
</template>
<style scoped>
.el-table .cell {
  display: flex !important;
  align-items: center !important;
}
</style>
<script>
  export default {
    data() {
      return {
        tableData: [{
          name:"周卡：7天连续不间断使用（通用）",
          mealtype: '小时卡',
          shop:"莲花北店龙华店大剧院店车公庙店",
          type: '帘子桌半开放格子桌',
          oldprice:"200",
          newprice:"180",
          examinestatus:"true",
          examine:"审核成功"
        }, {
          name:"周卡：7天连续不间断使用（通用）",
          mealtype: '小时卡',
          shop:"莲花北店龙华店大剧院店车公庙店",
          type: '帘子桌半开放格子桌',
          oldprice:"200",
          newprice:"180",
          examinestatus:"true",
          examine:"审核成功"
        }, {
          name:"周卡：7天连续不间断使用（通用）",
          mealtype: '小时卡',
          shop:"莲花北店龙华店大剧院店车公庙店",
          type: '帘子桌半开放格子桌',
          oldprice:"200",
          newprice:"180",
          examinestatus:"true",
          examine:"审核成功"
        }, {
         name:"周卡：7天连续不间断使用（通用）",
          mealtype: '小时卡',
          shop:"莲花北店龙华店大剧院店车公庙店",
          type: '帘子桌半开放格子桌',
          oldprice:"200",
          newprice:"180",
          examinestatus:"true",
          examine:"审核成功"
        }]
      }
    }
  }
</script>